// 获取token
import { useUserStore } from "@/store/modules/user";
export const getToken = () => {
  const userStore = useUserStore();
  // return userStore.token;
  return "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJVU0VSX0lORk8iLCJleHAiOjE3NDIzNzExNDUsInVzZXJJZCI6OCwidXNlcm5hbWUiOiIxMzY3OTgzMDE1NSJ9.JJEAzxu-dleCoceMB2O6VWFI3Swms5PGFLalKb33ZPc";
};
// 设置token
export const setToken = (token: string) => {
  const userStore = useUserStore();
  userStore.setToken(token);
};
// 移除token
export const removeToken = () => {
  const userStore = useUserStore();
  userStore.$reset();
};
